<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: coap_debug.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('coap__debug_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle"><div class="title">coap_debug.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;coap_config.h&quot;</code><br />
<code>#include &lt;stdarg.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;ctype.h&gt;</code><br />
<code>#include &quot;<a class="el" href="libcoap_8h_source.html">libcoap.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="block_8h_source.html">block.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="coap__debug_8h_source.html">coap_debug.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="encode_8h_source.html">encode.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="net_8h_source.html">net.h</a>&quot;</code><br />
</div>
<p><a href="coap__debug_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpacket__num__interval.html">packet_num_interval</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ac6afabdc09a49a433ee19d8a9486056d" id="r_ac6afabdc09a49a433ee19d8a9486056d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#ac6afabdc09a49a433ee19d8a9486056d">min</a>(a,  b)&#160;&#160;&#160;((a) &lt; (b) ? (a) : (b))</td></tr>
<tr class="separator:ac6afabdc09a49a433ee19d8a9486056d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d33d4ed158f92aeb05017538b3713d2" id="r_a9d33d4ed158f92aeb05017538b3713d2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a9d33d4ed158f92aeb05017538b3713d2">COAP_DO_SHOW_OUTPUT_LINE</a></td></tr>
<tr class="separator:a9d33d4ed158f92aeb05017538b3713d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaee6cf46cd10ec970c04179e788b79c39" id="r_gaee6cf46cd10ec970c04179e788b79c39"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gaee6cf46cd10ec970c04179e788b79c39">coap_package_name</a> (void)</td></tr>
<tr class="memdesc:gaee6cf46cd10ec970c04179e788b79c39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the library package name.  <br /></td></tr>
<tr class="separator:gaee6cf46cd10ec970c04179e788b79c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga771833fc4a485bb41d10fae37c8fcd14" id="r_ga771833fc4a485bb41d10fae37c8fcd14"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga771833fc4a485bb41d10fae37c8fcd14">coap_package_version</a> (void)</td></tr>
<tr class="memdesc:ga771833fc4a485bb41d10fae37c8fcd14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the library package version.  <br /></td></tr>
<tr class="separator:ga771833fc4a485bb41d10fae37c8fcd14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad382349e7b993e7f583854d3e50f52e9" id="r_gad382349e7b993e7f583854d3e50f52e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gad382349e7b993e7f583854d3e50f52e9">coap_set_show_pdu_output</a> (int use_fprintf)</td></tr>
<tr class="memdesc:gad382349e7b993e7f583854d3e50f52e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the output mode for the <a class="el" href="group__logging.html#ga3123fcde8310c0f7cb48897a683baef6" title="Display the contents of the specified pdu.">coap_show_pdu()</a> function.  <br /></td></tr>
<tr class="separator:gad382349e7b993e7f583854d3e50f52e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10c3fbd56b0eb3a8722b27a65fc9b0ce" id="r_ga10c3fbd56b0eb3a8722b27a65fc9b0ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga10c3fbd56b0eb3a8722b27a65fc9b0ce">coap_get_log_level</a> (void)</td></tr>
<tr class="memdesc:ga10c3fbd56b0eb3a8722b27a65fc9b0ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current logging level.  <br /></td></tr>
<tr class="separator:ga10c3fbd56b0eb3a8722b27a65fc9b0ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ac58ad9dc08bd68a5212f07d75e6948" id="r_ga8ac58ad9dc08bd68a5212f07d75e6948"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga8ac58ad9dc08bd68a5212f07d75e6948">coap_set_log_level</a> (<a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level)</td></tr>
<tr class="memdesc:ga8ac58ad9dc08bd68a5212f07d75e6948"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the log level to the specified value.  <br /></td></tr>
<tr class="separator:ga8ac58ad9dc08bd68a5212f07d75e6948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac22594f737f12f0c3947d2934070cd93" id="r_ac22594f737f12f0c3947d2934070cd93"><td class="memItemLeft" align="right" valign="top"><a class="el" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#ac22594f737f12f0c3947d2934070cd93">print_timestamp</a> (char *s, size_t len, <a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> t)</td></tr>
<tr class="separator:ac22594f737f12f0c3947d2934070cd93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa5ee5c2942fe13271a46000b2aebde6" id="r_aaa5ee5c2942fe13271a46000b2aebde6"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#aaa5ee5c2942fe13271a46000b2aebde6">strnlen</a> (const char *s, size_t maxlen)</td></tr>
<tr class="memdesc:aaa5ee5c2942fe13271a46000b2aebde6"><td class="mdescLeft">&#160;</td><td class="mdescRight">A length-safe strlen() fake.  <br /></td></tr>
<tr class="separator:aaa5ee5c2942fe13271a46000b2aebde6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3ba28934c772ce97c390e4ff4c776f" id="r_a9e3ba28934c772ce97c390e4ff4c776f"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a9e3ba28934c772ce97c390e4ff4c776f">print_readable</a> (const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t len, unsigned char *result, size_t buflen, int encode_always)</td></tr>
<tr class="separator:a9e3ba28934c772ce97c390e4ff4c776f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a4f5ef637bf85aa161adfe73ac81ff0" id="r_ga6a4f5ef637bf85aa161adfe73ac81ff0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga6a4f5ef637bf85aa161adfe73ac81ff0">coap_print_addr</a> (const struct <a class="el" href="structcoap__address__t.html">coap_address_t</a> *addr, unsigned char *buf, size_t len)</td></tr>
<tr class="memdesc:ga6a4f5ef637bf85aa161adfe73ac81ff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the address into the defined buffer.  <br /></td></tr>
<tr class="separator:ga6a4f5ef637bf85aa161adfe73ac81ff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae278ff13c04275166fb39b1892076b19" id="r_ae278ff13c04275166fb39b1892076b19"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#ae278ff13c04275166fb39b1892076b19">msg_type_string</a> (uint16_t t)</td></tr>
<tr class="memdesc:ae278ff13c04275166fb39b1892076b19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a textual description of the message type <code>t</code>.  <br /></td></tr>
<tr class="separator:ae278ff13c04275166fb39b1892076b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a3a1996a752f7b4bf512d235b2345e4" id="r_a9a3a1996a752f7b4bf512d235b2345e4"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a9a3a1996a752f7b4bf512d235b2345e4">msg_code_string</a> (uint16_t c)</td></tr>
<tr class="memdesc:a9a3a1996a752f7b4bf512d235b2345e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a textual description of the method or response code.  <br /></td></tr>
<tr class="separator:a9a3a1996a752f7b4bf512d235b2345e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa80e7b9d5e65c3483541fcc13da62949" id="r_aa80e7b9d5e65c3483541fcc13da62949"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#aa80e7b9d5e65c3483541fcc13da62949">msg_option_string</a> (<a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> code, uint16_t option_type)</td></tr>
<tr class="memdesc:aa80e7b9d5e65c3483541fcc13da62949"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a textual description of the option name.  <br /></td></tr>
<tr class="separator:aa80e7b9d5e65c3483541fcc13da62949"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af117a9e7fbf2a7d61922631cc747c3e9" id="r_af117a9e7fbf2a7d61922631cc747c3e9"><td class="memItemLeft" align="right" valign="top">static unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#af117a9e7fbf2a7d61922631cc747c3e9">print_content_format</a> (unsigned int format_type, unsigned char *result, unsigned int buflen)</td></tr>
<tr class="separator:af117a9e7fbf2a7d61922631cc747c3e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70db69adf2511b8264abad9fd8218d58" id="r_a70db69adf2511b8264abad9fd8218d58"><td class="memItemLeft" align="right" valign="top"><a class="el" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a70db69adf2511b8264abad9fd8218d58">is_binary</a> (int content_format)</td></tr>
<tr class="memdesc:a70db69adf2511b8264abad9fd8218d58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns 1 if the given <code>content_format</code> is either unknown or known to carry binary data.  <br /></td></tr>
<tr class="separator:a70db69adf2511b8264abad9fd8218d58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3123fcde8310c0f7cb48897a683baef6" id="r_ga3123fcde8310c0f7cb48897a683baef6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga3123fcde8310c0f7cb48897a683baef6">coap_show_pdu</a> (<a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level, const <a class="el" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu)</td></tr>
<tr class="memdesc:ga3123fcde8310c0f7cb48897a683baef6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the contents of the specified <code>pdu</code>.  <br /></td></tr>
<tr class="separator:ga3123fcde8310c0f7cb48897a683baef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace7d5d32535b328bdb5c90ef64c7d63e" id="r_gace7d5d32535b328bdb5c90ef64c7d63e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gace7d5d32535b328bdb5c90ef64c7d63e">coap_show_tls_version</a> (<a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level)</td></tr>
<tr class="memdesc:gace7d5d32535b328bdb5c90ef64c7d63e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the current (D)TLS library linked with and built for version.  <br /></td></tr>
<tr class="separator:gace7d5d32535b328bdb5c90ef64c7d63e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11363937b50a90ff245460e1abc13e84" id="r_ga11363937b50a90ff245460e1abc13e84"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga11363937b50a90ff245460e1abc13e84">coap_string_tls_version</a> (char *buffer, size_t bufsize)</td></tr>
<tr class="memdesc:ga11363937b50a90ff245460e1abc13e84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build a string containing the current (D)TLS library linked with and built for version.  <br /></td></tr>
<tr class="separator:ga11363937b50a90ff245460e1abc13e84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0577c5a45b04d26f30a64e8e604b458e" id="r_ga0577c5a45b04d26f30a64e8e604b458e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga0577c5a45b04d26f30a64e8e604b458e">coap_set_log_handler</a> (<a class="el" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a> handler)</td></tr>
<tr class="memdesc:ga0577c5a45b04d26f30a64e8e604b458e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a custom log callback handler.  <br /></td></tr>
<tr class="separator:ga0577c5a45b04d26f30a64e8e604b458e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cdced532dd20942747e340f359ad278" id="r_ga9cdced532dd20942747e340f359ad278"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga9cdced532dd20942747e340f359ad278">coap_log_impl</a> (<a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level, const char *format,...)</td></tr>
<tr class="memdesc:ga9cdced532dd20942747e340f359ad278"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the given text to <code>COAP_ERR_FD</code> (for <code>level</code> &lt;= <code>LOG_CRIT</code>) or <code>COAP_DEBUG_FD</code> (for <code>level</code> &gt;= <code>LOG_ERR</code>).  <br /></td></tr>
<tr class="separator:ga9cdced532dd20942747e340f359ad278"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25c1953496b038559c058075586f6500" id="r_a25c1953496b038559c058075586f6500"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a25c1953496b038559c058075586f6500">coap_debug_set_packet_loss</a> (const char *loss_level)</td></tr>
<tr class="memdesc:a25c1953496b038559c058075586f6500"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the packet loss level for testing.  <br /></td></tr>
<tr class="separator:a25c1953496b038559c058075586f6500"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af01fc56422e6401f529b053b61e65cad" id="r_af01fc56422e6401f529b053b61e65cad"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#af01fc56422e6401f529b053b61e65cad">coap_debug_send_packet</a> (void)</td></tr>
<tr class="memdesc:af01fc56422e6401f529b053b61e65cad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check to see whether a packet should be sent or not.  <br /></td></tr>
<tr class="separator:af01fc56422e6401f529b053b61e65cad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a5cd12986083902442d67ba245c3e6f9b" id="r_a5cd12986083902442d67ba245c3e6f9b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a5cd12986083902442d67ba245c3e6f9b">maxlog</a> = <a class="el" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a></td></tr>
<tr class="separator:a5cd12986083902442d67ba245c3e6f9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae448f28aac8dd05ce88fe33bb7bfb938" id="r_ae448f28aac8dd05ce88fe33bb7bfb938"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#ae448f28aac8dd05ce88fe33bb7bfb938">use_fprintf_for_show_pdu</a> = 1</td></tr>
<tr class="separator:ae448f28aac8dd05ce88fe33bb7bfb938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab82c0e1b0d64da94cefff71b2cd83bab" id="r_ab82c0e1b0d64da94cefff71b2cd83bab"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#ab82c0e1b0d64da94cefff71b2cd83bab">loglevels</a> []</td></tr>
<tr class="separator:ab82c0e1b0d64da94cefff71b2cd83bab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63ce97b314530371ea95cf411d04df9f" id="r_a63ce97b314530371ea95cf411d04df9f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a63ce97b314530371ea95cf411d04df9f">log_handler</a> = NULL</td></tr>
<tr class="separator:a63ce97b314530371ea95cf411d04df9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b05b526ad822bebc315955e5b5b6f3" id="r_a11b05b526ad822bebc315955e5b5b6f3"><td class="memItemLeft" align="right" valign="top">static struct <a class="el" href="structpacket__num__interval.html">packet_num_interval</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a11b05b526ad822bebc315955e5b5b6f3">packet_loss_intervals</a> [10]</td></tr>
<tr class="separator:a11b05b526ad822bebc315955e5b5b6f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec94e79b407e6073ccd5f3a6beadd3ac" id="r_aec94e79b407e6073ccd5f3a6beadd3ac"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#aec94e79b407e6073ccd5f3a6beadd3ac">num_packet_loss_intervals</a> = 0</td></tr>
<tr class="separator:aec94e79b407e6073ccd5f3a6beadd3ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10b8cdf0f5466ad5101e6f9be92786ae" id="r_a10b8cdf0f5466ad5101e6f9be92786ae"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a10b8cdf0f5466ad5101e6f9be92786ae">packet_loss_level</a> = 0</td></tr>
<tr class="separator:a10b8cdf0f5466ad5101e6f9be92786ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19b1c45f6880e3d2d3be4bd78f75ccd9" id="r_a19b1c45f6880e3d2d3be4bd78f75ccd9"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coap__debug_8c.html#a19b1c45f6880e3d2d3be4bd78f75ccd9">send_packet_count</a> = 0</td></tr>
<tr class="separator:a19b1c45f6880e3d2d3be4bd78f75ccd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a9d33d4ed158f92aeb05017538b3713d2" name="a9d33d4ed158f92aeb05017538b3713d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d33d4ed158f92aeb05017538b3713d2">&#9670;&#160;</a></span>COAP_DO_SHOW_OUTPUT_LINE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_DO_SHOW_OUTPUT_LINE</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> <span class="keywordflow">do</span> {                                      \</div>
<div class="line">   if (<a class="code hl_variable" href="coap__debug_8c.html#ae448f28aac8dd05ce88fe33bb7bfb938">use_fprintf_for_show_pdu</a>) {         \</div>
<div class="line">     fprintf(<a class="code hl_define" href="group__logging.html#gaab59644b8f0baa0292a41f4eb6aa9eff">COAP_DEBUG_FD</a>, <span class="stringliteral">&quot;%s&quot;</span>, outbuf); \</div>
<div class="line">   }                                       \</div>
<div class="line">   <span class="keywordflow">else</span> {                                  \</div>
<div class="line">     coap_log(level, <span class="stringliteral">&quot;%s&quot;</span>, outbuf);        \</div>
<div class="line">   }                                       \</div>
<div class="line"> } <span class="keywordflow">while</span> (0)</div>
<div class="ttc" id="acoap__debug_8c_html_ae448f28aac8dd05ce88fe33bb7bfb938"><div class="ttname"><a href="coap__debug_8c.html#ae448f28aac8dd05ce88fe33bb7bfb938">use_fprintf_for_show_pdu</a></div><div class="ttdeci">static int use_fprintf_for_show_pdu</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00055">coap_debug.c:55</a></div></div>
<div class="ttc" id="agroup__logging_html_gaab59644b8f0baa0292a41f4eb6aa9eff"><div class="ttname"><a href="group__logging.html#gaab59644b8f0baa0292a41f4eb6aa9eff">COAP_DEBUG_FD</a></div><div class="ttdeci">#define COAP_DEBUG_FD</div><div class="ttdoc">Used for output for LOG_DEBUG to LOG_ERR.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00023">coap_debug.h:23</a></div></div>
</div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00450">450</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="ac6afabdc09a49a433ee19d8a9486056d" name="ac6afabdc09a49a433ee19d8a9486056d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6afabdc09a49a433ee19d8a9486056d">&#9670;&#160;</a></span>min</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define min</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">b&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;((a) &lt; (b) ? (a) : (b))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00167">167</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="af01fc56422e6401f529b053b61e65cad" name="af01fc56422e6401f529b053b61e65cad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af01fc56422e6401f529b053b61e65cad">&#9670;&#160;</a></span>coap_debug_send_packet()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_debug_send_packet </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check to see whether a packet should be sent or not. </p>
<p>Internal function</p>
<dl class="section return"><dt>Returns</dt><dd><code>1</code> if packet is to be sent, <code>0</code> if packet is to be dropped. </dd></dl>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00833">833</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a25c1953496b038559c058075586f6500" name="a25c1953496b038559c058075586f6500"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25c1953496b038559c058075586f6500">&#9670;&#160;</a></span>coap_debug_set_packet_loss()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int coap_debug_set_packet_loss </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>loss_level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the packet loss level for testing. </p>
<p>This can be in one of two forms.</p>
<p>Percentage : 0% to 100%. Use the specified probability. 0% is send all packets, 100% is drop all packets.</p>
<p>List: A comma separated list of numbers or number ranges that are the packets to drop.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">loss_level</td><td>The defined loss level (percentage or list).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>1</code> If loss level set, <code>0</code> if there is an error. </dd></dl>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00793">793</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a70db69adf2511b8264abad9fd8218d58" name="a70db69adf2511b8264abad9fd8218d58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70db69adf2511b8264abad9fd8218d58">&#9670;&#160;</a></span>is_binary()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> int is_binary </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>content_format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns 1 if the given <code>content_format</code> is either unknown or known to carry binary data. </p>
<p>The return value <code>0</code> hence indicates printable data which is also assumed if <code>content_format</code> is <code>01</code>. </p>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00442">442</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a9a3a1996a752f7b4bf512d235b2345e4" name="a9a3a1996a752f7b4bf512d235b2345e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a3a1996a752f7b4bf512d235b2345e4">&#9670;&#160;</a></span>msg_code_string()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const char * msg_code_string </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a textual description of the method or response code. </p>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00282">282</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="aa80e7b9d5e65c3483541fcc13da62949" name="aa80e7b9d5e65c3483541fcc13da62949"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa80e7b9d5e65c3483541fcc13da62949">&#9670;&#160;</a></span>msg_option_string()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const char * msg_option_string </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>option_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a textual description of the option name. </p>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00301">301</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="ae278ff13c04275166fb39b1892076b19" name="ae278ff13c04275166fb39b1892076b19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae278ff13c04275166fb39b1892076b19">&#9670;&#160;</a></span>msg_type_string()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const char * msg_type_string </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a textual description of the message type <code>t</code>. </p>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00274">274</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="af117a9e7fbf2a7d61922631cc747c3e9" name="af117a9e7fbf2a7d61922631cc747c3e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af117a9e7fbf2a7d61922631cc747c3e9">&#9670;&#160;</a></span>print_content_format()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static unsigned int print_content_format </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>format_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>buflen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00389">389</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a9e3ba28934c772ce97c390e4ff4c776f" name="a9e3ba28934c772ce97c390e4ff4c776f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e3ba28934c772ce97c390e4ff4c776f">&#9670;&#160;</a></span>print_readable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static size_t print_readable </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>buflen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encode_always</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00130">130</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="ac22594f737f12f0c3947d2934070cd93" name="ac22594f737f12f0c3947d2934070cd93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac22594f737f12f0c3947d2934070cd93">&#9670;&#160;</a></span>print_timestamp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> size_t print_timestamp </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a>&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00098">98</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="aaa5ee5c2942fe13271a46000b2aebde6" name="aaa5ee5c2942fe13271a46000b2aebde6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa5ee5c2942fe13271a46000b2aebde6">&#9670;&#160;</a></span>strnlen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static size_t strnlen </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxlen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A length-safe strlen() fake. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The string to count characters != 0. </td></tr>
    <tr><td class="paramname">maxlen</td><td>The maximum length of <code>s</code>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The length of <code>s</code>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00121">121</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a63ce97b314530371ea95cf411d04df9f" name="a63ce97b314530371ea95cf411d04df9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63ce97b314530371ea95cf411d04df9f">&#9670;&#160;</a></span>log_handler</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a> log_handler = NULL</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00740">740</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="ab82c0e1b0d64da94cefff71b2cd83bab" name="ab82c0e1b0d64da94cefff71b2cd83bab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab82c0e1b0d64da94cefff71b2cd83bab">&#9670;&#160;</a></span>loglevels</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* loglevels[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">  <span class="stringliteral">&quot;EMRG&quot;</span>, <span class="stringliteral">&quot;ALRT&quot;</span>, <span class="stringliteral">&quot;CRIT&quot;</span>, <span class="stringliteral">&quot;ERR &quot;</span>, <span class="stringliteral">&quot;WARN&quot;</span>, <span class="stringliteral">&quot;NOTE&quot;</span>, <span class="stringliteral">&quot;INFO&quot;</span>, <span class="stringliteral">&quot;DEBG&quot;</span></div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00081">81</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a5cd12986083902442d67ba245c3e6f9b" name="a5cd12986083902442d67ba245c3e6f9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cd12986083902442d67ba245c3e6f9b">&#9670;&#160;</a></span>maxlog</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> maxlog = <a class="el" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00053">53</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="aec94e79b407e6073ccd5f3a6beadd3ac" name="aec94e79b407e6073ccd5f3a6beadd3ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec94e79b407e6073ccd5f3a6beadd3ac">&#9670;&#160;</a></span>num_packet_loss_intervals</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int num_packet_loss_intervals = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00789">789</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a11b05b526ad822bebc315955e5b5b6f3" name="a11b05b526ad822bebc315955e5b5b6f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11b05b526ad822bebc315955e5b5b6f3">&#9670;&#160;</a></span>packet_loss_intervals</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structpacket__num__interval.html">packet_num_interval</a> packet_loss_intervals[10]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a10b8cdf0f5466ad5101e6f9be92786ae" name="a10b8cdf0f5466ad5101e6f9be92786ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10b8cdf0f5466ad5101e6f9be92786ae">&#9670;&#160;</a></span>packet_loss_level</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int packet_loss_level = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00790">790</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="a19b1c45f6880e3d2d3be4bd78f75ccd9" name="a19b1c45f6880e3d2d3be4bd78f75ccd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19b1c45f6880e3d2d3be4bd78f75ccd9">&#9670;&#160;</a></span>send_packet_count</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int send_packet_count = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00791">791</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
<a id="ae448f28aac8dd05ce88fe33bb7bfb938" name="ae448f28aac8dd05ce88fe33bb7bfb938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae448f28aac8dd05ce88fe33bb7bfb938">&#9670;&#160;</a></span>use_fprintf_for_show_pdu</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int use_fprintf_for_show_pdu = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="coap__debug_8c_source.html#l00055">55</a> of file <a class="el" href="coap__debug_8c_source.html">coap_debug.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="coap__debug_8c.html">coap_debug.c</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
